<template>
	<div>
		<div class="page-header col-xs-offset-2 col-xs-8">
			<h2>Vue路由测试</h2>
		</div>
		<!-- 导航区域 -->
		<div class="col-xs-2 col-xs-offset-2">
			<!-- 在原生html中，我们通过a标签实现页面的跳转 -->
			<!-- <a class="list-group-item" href="./about.html">About</a> -->
			<!-- <a class="list-group-item" href="./home.html">Home</a> -->

			<!-- 在Vue中通过router-link修改浏览器路径，进而被路由器检测到，从而实现组件切换 -->
			<router-link class="list-group-item" to="/about">About</router-link>
			<router-link class="list-group-item" to="/home">Home</router-link>

		</div>
		<!-- 展示区 -->
		<div class="col-xs-6 panel-body">
			<!-- 用router-view占一下位，告诉路由器匹配上的路由组件展示到这里 -->
			<router-view/>
		</div>
	</div>
</template>

<script>
	export default {
		name:'App'
	}
</script>
